package com.sharp.kernel.mybatis.join.entity;

import java.util.List;

/**
 * Title: IOutJoinRelationship
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2022/7/26 15:49
 */
public interface IOutJoinRelationship {
    /**
     *
     * @param clazz1
     * @param fieldName1
     * @param clazz2
     * @param fieldName2
     * @return
     */
    default JoinRelationship buildJoinRelationship(Class<?> clazz1, String fieldName1, Class<?> clazz2, String fieldName2) {
        return new JoinRelationship(clazz1, fieldName1, clazz2, fieldName2, JoinRelationship.Type.LEFT_JOIN);
    }

    JoinRelationship joinRelationship();
}
